package coop.tecso.test.objets.complex;

//src/gen
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 *
 */
@Entity
@Table(name = "COUPON_FLOWN_PAX")
public class CouponFlownPax implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "COUPON_FLOWN_PAX_SEQ")
	@SequenceGenerator(name = "COUPON_FLOWN_PAX_SEQ", sequenceName = "COUPON_FLOWN_PAX_SEQ", allocationSize = 1)
	@Column(name = "COUPON_FLOWN_PAX_ID", nullable = false)
	private int id;
	@Version
	@Column(name = "VERSION")
	private int couponFlownPaxversion;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "PAX_NAME", nullable = false, length = 50)
	private String paxName;

	/**
	 *
	 */
	@Column(name = "PAX_ID_TYPE", length = 10)
	private String paxIdType;

	/**
	 *
	 */
	@Column(name = "PAX_ID_NUMBER", length = 20)
	private String paxIdNumber;

	/**
	 *
	 */
	@Column(name = "BOARDING_PASS", length = 20)
	private String boardingPass;

	/**
	 *
	 */
	@Column(name = "FQT_CARD_AIRLINE", length = 4)
	private String fqtCardAirline;

	/**
	 *
	 */
	@Column(name = "FQT_CARD_NUMBER", length = 20)
	private String fqtCardNumber;

	/**
	 *
	 */
	@Column(name = "GATE", length = 10)
	private String gate;

	/**
	 *
	 */
	@Column(name = "SEAT_NUMBER", length = 3)
	private String seatNumber;

	/**
	 *
	 */
	@Column(name = "SEAT_COLUMN", length = 2)
	private String seatColumn;

	/**
	 *
	 */
	@Column(name = "BAG_QUANTITY", length = 4)
	private Integer bagQuantity;

	/**
	 *
	 */
	@Column(name = "BAG_WEIGHT", length = 10, precision = 7, scale = 2)
	private java.math.BigDecimal bagWeight;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "PASSENGER_TYPE_FK", nullable = false, length = 3)
	private String passengerTypeFk;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_USER", length = 255)
	private String tecCreationUser;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_TIMESTAMP")
	private java.sql.Timestamp tecCreationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_TIMESTAMP")
	private java.sql.Timestamp tecModificationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_USER", length = 255)
	private String tecModificationUser;

	/**
	 *
	 */
	@Column(name = "TEC_DELETED")
	private Boolean tecDeleted;

	/**
	 *
	 */
	@OneToOne(targetEntity = CouponFlown.class, optional = false, fetch = FetchType.LAZY)
	@JoinColumns({@JoinColumn(name = "COUPON_FLOWN_FK",referencedColumnName = "COUPON_FLOWN_ID",nullable = false)
	})
	private CouponFlown couponFlown;

	/**
	 *
	 */
	@OneToMany(targetEntity = CouponFlownMpd.class, mappedBy = "couponFlownPax", fetch = FetchType.LAZY)
	private java.util.Set<CouponFlownMpd> couponFlownMpd = new java.util.HashSet<CouponFlownMpd>();

	/**
	 *
	 */
	@OneToMany(targetEntity = CouponFlownEmd.class, mappedBy = "couponFlownPax", fetch = FetchType.LAZY)
	private java.util.Set<CouponFlownEmd> couponFlownEmd = new java.util.HashSet<CouponFlownEmd>();

	/**
	 *
	 */
	@OneToOne(targetEntity = CouponFlownPax.class, fetch = FetchType.LAZY)
	@JoinColumns({@JoinColumn(name = "CONSOLIDATED_TO_FK",referencedColumnName = "COUPON_FLOWN_PAX_ID")
	})
	private CouponFlownPax consolidatedTo;

	/**
	 *
	 */
	@OneToOne(targetEntity = CouponFlownXsb.class, mappedBy = "couponFlownPax", fetch = FetchType.LAZY)
	@JoinColumns({@JoinColumn(name = "COUPON_FLOWN_XSB_FK",referencedColumnName = "COUPON_FLOWN_XSB_ID")
	})
	private CouponFlownXsb couponFlownXsb;

	/**
	 *
	 */
	@OneToOne(targetEntity = CouponFlownMco.class, mappedBy = "couponFlownPax", fetch = FetchType.LAZY)
	@JoinColumns({@JoinColumn(name = "COUPON_FLOWN_MCO_FK",referencedColumnName = "COUPON_FLOWN_MCO_ID")
	})
	private CouponFlownMco couponFlownMco;

	public CouponFlownPax() {
	}

	// Constructor for primary key
	public CouponFlownPax(int id) {
		this.id = id;
	}

	/**
	 * Autogenerated key
	 */
	public int getId() {
		return id;
	}

	public int getCouponFlownPaxversion() {
		return couponFlownPaxversion;
	}

	public void setCouponFlownPaxversion(int couponFlownPaxversion) {
		this.couponFlownPaxversion = couponFlownPaxversion;
	}

	public String getPaxName() {
		return paxName;
	}

	public void setPaxName(String paxName) {
		this.paxName = paxName;
	}

	public String getPaxIdType() {
		return paxIdType;
	}

	public void setPaxIdType(String paxIdType) {
		this.paxIdType = paxIdType;
	}

	public String getPaxIdNumber() {
		return paxIdNumber;
	}

	public void setPaxIdNumber(String paxIdNumber) {
		this.paxIdNumber = paxIdNumber;
	}

	public String getBoardingPass() {
		return boardingPass;
	}

	public void setBoardingPass(String boardingPass) {
		this.boardingPass = boardingPass;
	}

	public String getFqtCardAirline() {
		return fqtCardAirline;
	}

	public void setFqtCardAirline(String fqtCardAirline) {
		this.fqtCardAirline = fqtCardAirline;
	}

	public String getFqtCardNumber() {
		return fqtCardNumber;
	}

	public void setFqtCardNumber(String fqtCardNumber) {
		this.fqtCardNumber = fqtCardNumber;
	}

	public String getGate() {
		return gate;
	}

	public void setGate(String gate) {
		this.gate = gate;
	}

	public String getSeatNumber() {
		return seatNumber;
	}

	public void setSeatNumber(String seatNumber) {
		this.seatNumber = seatNumber;
	}

	public String getSeatColumn() {
		return seatColumn;
	}

	public void setSeatColumn(String seatColumn) {
		this.seatColumn = seatColumn;
	}

	public Integer getBagQuantity() {
		return bagQuantity;
	}

	public void setBagQuantity(Integer bagQuantity) {
		this.bagQuantity = bagQuantity;
	}

	public java.math.BigDecimal getBagWeight() {
		return bagWeight;
	}

	public void setBagWeight(java.math.BigDecimal bagWeight) {
		this.bagWeight = bagWeight;
	}

	public String getPassengerTypeFk() {
		return passengerTypeFk;
	}

	public void setPassengerTypeFk(String passengerTypeFk) {
		this.passengerTypeFk = passengerTypeFk;
	}

	public String getTecCreationUser() {
		return tecCreationUser;
	}

	public void setTecCreationUser(String tecCreationUser) {
		this.tecCreationUser = tecCreationUser;
	}

	public java.sql.Timestamp getTecCreationTimestamp() {
		return tecCreationTimestamp;
	}

	public void setTecCreationTimestamp(java.sql.Timestamp tecCreationTimestamp) {
		this.tecCreationTimestamp = tecCreationTimestamp;
	}

	public java.sql.Timestamp getTecModificationTimestamp() {
		return tecModificationTimestamp;
	}

	public void setTecModificationTimestamp(
			java.sql.Timestamp tecModificationTimestamp) {
		this.tecModificationTimestamp = tecModificationTimestamp;
	}

	public String getTecModificationUser() {
		return tecModificationUser;
	}

	public void setTecModificationUser(String tecModificationUser) {
		this.tecModificationUser = tecModificationUser;
	}

	public Boolean getTecDeleted() {
		return tecDeleted;
	}

	public void setTecDeleted(Boolean tecDeleted) {
		this.tecDeleted = tecDeleted;
	}

	public CouponFlown getCouponFlown() {
		return couponFlown;
	}

	public void setCouponFlown(
CouponFlown couponFlown) {
		this.couponFlown = couponFlown;
	}

	public java.util.Set<CouponFlownMpd> getCouponFlownMpd() {
		return couponFlownMpd;
	}

	public void setCouponFlownMpd(
java.util.Set<CouponFlownMpd> couponFlownMpd) {
		this.couponFlownMpd = couponFlownMpd;
	}

	public void addCouponFlownMpd(
CouponFlownMpd couponFlownMpd) {
		this.couponFlownMpd.add(couponFlownMpd);
	}

	public void removeCouponFlownMpd(
CouponFlownMpd couponFlownMpd) {
		this.couponFlownMpd.remove(couponFlownMpd);
	}

	public java.util.Set<CouponFlownEmd> getCouponFlownEmd() {
		return couponFlownEmd;
	}

	public void setCouponFlownEmd(
java.util.Set<CouponFlownEmd> couponFlownEmd) {
		this.couponFlownEmd = couponFlownEmd;
	}

	public void addCouponFlownEmd(
CouponFlownEmd couponFlownEmd) {
		this.couponFlownEmd.add(couponFlownEmd);
	}

	public void removeCouponFlownEmd(
CouponFlownEmd couponFlownEmd) {
		this.couponFlownEmd.remove(couponFlownEmd);
	}

	public CouponFlownPax getConsolidatedTo() {
		return consolidatedTo;
	}

	public void setConsolidatedTo(
CouponFlownPax consolidatedTo) {
		this.consolidatedTo = consolidatedTo;
	}

	public CouponFlownXsb getCouponFlownXsb() {
		return couponFlownXsb;
	}

	public void setCouponFlownXsb(
CouponFlownXsb couponFlownXsb) {
		this.couponFlownXsb = couponFlownXsb;
	}

	public CouponFlownMco getCouponFlownMco() {
		return couponFlownMco;
	}

	public void setCouponFlownMco(
CouponFlownMco couponFlownMco) {
		this.couponFlownMco = couponFlownMco;
	}
}
